#ifndef WF_MODIFYCUT_H
#define WF_MODIFYCUT_H

#include "pf_actioninterface.h"
#include "pf_modification.h"
#include "gui_export.h"

/**
 * This action class can handle user events to divide entities.
 *
 */
class GUI_EXPORT WF_ModifyCut : public PF_ActionInterface {
	Q_OBJECT
public:
    /**
     * Action States.
     */
    enum Status {
        ChooseCutEntity,      /**< Choosing the entity to cut in two. */
        SetCutCoord        /**< Choosing the cutting point. */
    };

public:
    WF_ModifyCut(PF_Container& container,
                        PF_GraphicView& graphicView);
    ~WF_ModifyCut() {}
	
	static QAction* createGUIAction(LX_Define::ActionType /*type*/, QObject* /*parent*/);

    virtual void init(int status=0);
    virtual void trigger();
    virtual void mouseMoveEvent(PF_MouseEvent* e);
    virtual void mouseReleaseEvent(PF_MouseEvent* e);
    virtual void updateMouseButtonHints();
    virtual void updateMouseCursor();
    virtual void updateToolBar();

private:
    PF_Entity* cutEntity;
	PF_Vector cutCoord;
};

#endif
